//
//  SetoffCell.m
//  FreshBee
//
//  Created by 姜 祥云 on 16/10/15.
//  Copyright © 2016年 iOS013. All rights reserved.
//

#import "SetoffCell.h"
@interface SetoffCell ()
@property (nonatomic,weak) UILabel *messageLabel;
@end

@implementation SetoffCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        [self createMySubView];
    }
    return self;
}
-(void)createMySubView
{
    UILabel *messageLabel = [[UILabel alloc]init];
    self.messageLabel=messageLabel;
    self.messageLabel.textColor=[UIColor darkGrayColor];
    self.messageLabel.text=@"退出当前账号";
    self.messageLabel.font=[UIFont systemFontOfSize:14];
    self.messageLabel.textAlignment=NSTextAlignmentCenter;
    self.messageLabel.frame = self.contentView.bounds;
//    self.messageLabel.frame=CGRectMake(self.contentView.frame.size.width/2, 0, self.messageLabel.bounds.size.width, self.messageLabel.bounds.size.height);

    
    [self.contentView addSubview:messageLabel];

}

- (void)layoutSubviews
{
     self.messageLabel.center = CGPointMake([UIScreen mainScreen].bounds.size.width /2 , self.contentView.bounds.size.height / 2);
}

@end
